<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
	xmlns:s="/struts-tags" xmlns:sj="/struts-jquery-tags">
	<jsp:directive.page language="java"
		contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
	<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<jsp:text>
	<![CDATA[ 				
		
		 ]]>
</jsp:text>
</head>
<!-- Head -->
<body>
	<div class="row">
		<div align="center">
			<h1>Modificar empleado</h1>
		</div>
	</div>
	<div class="row">
		<s:form cssClass="form-horizontal" method="post"
			action="%{request.contextPath}/empleado/gestionar-empleado/%{idSel}">
			<s:hidden name="_method" value="put"></s:hidden>
			<div class="form-group">
				<label for="email" class="col-sm-2 control-label">Email:</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="email"
						name="model.email" placeholder="Email" value="${model.email}" />
					<s:fielderror fieldName="model.email" theme="jquery"
						cssClass="error" />
				</div>
			</div>
			<div class="form-group">
				<label for="password" class="col-sm-2 control-label">Password:</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="password"
						name="model.password" placeholder="Password"
						value="${model.password}" />
					<s:fielderror fieldName="model.password" theme="jquery"
						cssClass="error" />
				</div>
			</div>
			<div class="form-group">
				<label for="puesto" class="col-sm-2 control-label">Puesto:</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="puesto"
						name="model.puesto" placeholder="Puesto" value="${model.puesto}" />
					<s:fielderror fieldName="model.puesto" theme="jquery"
						cssClass="error" />
				</div>
			</div>
			<div class="form-group">
				<label for="direccion" class="col-sm-2 control-label">Dirección:</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="direccion"
						name="model.direccion" placeholder="Direccción"
						value="${model.direccion}" />
					<s:fielderror fieldName="model.direccion" theme="jquery"
						cssClass="error" />
				</div>
			</div>
			<table>
				<tr>
					<td><label for="perfil" class="col-sm-2 control-label">
							Perfil:</label></td>
					<td><s:select list="listPerfil" name="model.idPerfil"
							headerKey="-1" headerValue="Seleccione" listKey="idPerfil"
							listValue="nombre" cssErrorClass="input-error" /></td>
					<td><s:fielderror fieldName="model.idPerfil" theme="jquery"
							cssClass="error" /></td>
				</tr>
			</table>

			<table>
				<tr>
					<td><label for="supervisor" class="col-sm-2 control-label">
							Supervisor:</label></td>
					<td><s:select list="listSupervisor" name="model.idSupervisor"
							headerKey="-1" headerValue="Seleccione" listKey="idEmpleado"
							listValue="email" cssErrorClass="input-error" /></td>
					<td><s:fielderror fieldName="model.idSupervisor"
							theme="jquery" cssClass="error" /></td>
				</tr>
			</table>

			<table>
				<tr>
					<td><label for="departamento" class="col-sm-2 control-label">
							Departamento:</label></td>
					<td><s:select list="listDepartamento"
							name="model.idDepartamento" headerKey="-1"
							headerValue="Seleccione" listKey="idDepartamento"
							listValue="nombre" cssErrorClass="input-error" /></td>
					<td><s:fielderror fieldName="model.idDepartamento"
							theme="jquery" cssClass="error" /></td>
				</tr>
			</table>

			<div class="form-group">
				<div class="col-md-offset-5">
					<button type="submit" class="btn btn-success">Enviar</button>
					<button
						onclick="location='${pageContext.request.contextPath}/empleado/gestionar-empleado'"
						class="btn-default btn" type="button">Cancelar</button>
				</div>
			</div>


		</s:form>
	</div>
</body>
	</html>
</jsp:root>